package com.zzzn.rhtx.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class MakeCallRequestDo {

    private MakeCall request;


    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    @Data
    public static class MakeCall {
        @JsonProperty("@id")
        private String id;
        @JsonProperty("@type")
        private String type;
        //主叫用户号码
        private String callingDevice;
        private Called called;
        //呼叫类型  audio：语音呼叫  video：视频呼叫
        private String callType;
        //full:全双工   half：对讲呼叫
        private String duplexMode;


        @AllArgsConstructor
        @NoArgsConstructor
        @Builder
        @Data
        public static class Called {
            //被叫用户号码
            private String calledDevice;
        }

    }

}
